home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / alv.sun / alv.lha / src / defs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-08  |  1.0 KB  |  50 lines

  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <string.h>
  4. #include <sys/file.h>
  5.  
  6. #include <suntool/sunview.h>
  7. #include <suntool/canvas.h>
  8. #include <suntool/panel.h>
  9. #include <pixrect/pixrect_hs.h>
  10. #include <sunwindow/defaults.h>
  11.  
  12. #define PROFILE        ".alv_profile"
  13. #define NOT_SUPPORTED   -1 
  14. #define ROUND_DEPTH(d)  ((d==1)?1:(d<=8)?8:(d<=16)?16:(d<=32)?32:NOT_SUPPORTED)
  15. #define MAXLEVEL(d)        ((int)(pow(2.,(double)(d))))
  16. #define MT_GRAYSCALE    4
  17.  
  18. #define ALV_ERR_DEPTH_NO_SUPPORT    "Depth not supported"
  19.  
  20. #ifndef MAX
  21. #define MAX(a,b)        (((a)>(b))?(a):(b))
  22. #endif
  23. #ifndef MIN
  24. #define MIN(a,b)        (((a)<(b))?(a):(b))
  25. #endif
  26.  
  27. #define strsave(s)      (strcpy(malloc(strlen(s)+1),s))
  28.  
  29. #define FONT        "/usr/lib/fonts/fixedwidthfonts/screen.r.12"
  30. #define SMALL_FONT    "/usr/lib/fonts/fixedwidthfonts/screen.r.7"
  31.  
  32. #define FALSE    0
  33. #ifndef TRUE
  34. #define TRUE    !FALSE
  35. #endif
  36.  
  37. ixfont *font, *smallfont;
  38.  
  39. nt bitrestrict, verbose, mono_override;
  40.  
  41. xtern char *optarg;
  42. xtern int optind, opterr;
  43.  
  44. nt errflag;
  45. nt gc, stream;
  46. FILE *f[2];
  47. har *mode[2];
  48.  
  49. nsigned char greylevelmap[256];
  50.